﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Structs;
using Analyzer;


namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int count=0;
            this.Text = count.ToString();
            SentencesReader.Folders(Application.StartupPath + "\\");
            string m = ReaderFromFile.Read(textBox1.Text);
            Sentence s;
            SentencesReader.SetSyntacticPath = "D:\\Курсовая\\Analysis\\Syntactic\\bin\\wrf.exe";
            while (m != string.Empty)
            {
                s = SentencesReader.ReadSentence(m);
                m = SentencesReader.RemoveSentenceFromMessage(s.Content, m);
                SentencesReader.Activate(s, Application.StartupPath + "\\");
                count++;
                this.Text = count.ToString();
            }
        }
    }
}
